/**
 * 
 */
package com.ez.supervise.dao;

import java.util.List;

import com.ez.supervise.core.Page;
import com.ez.supervise.dao.base.BaseDao;
import com.ez.supervise.model.biz.OrgDemocracy;

/**
 * @author searph.wang
 * @email searph.wang@gmail.com
 * @Created at 2009-7-22
 * 
 */
public interface OrgDemocracyDao extends BaseDao {

    /**
     * @param page
     * @return
     */
    List findByPage(Page page);

    /**
     * @param page
     * @return
     */
    int findByCount(Page page);

    /**
     * @return
     */
    List findAll();

    /**
     * @param dataList
     */
    void saveOrgDemocracy(List<OrgDemocracy> dataList);

    /**
     * @param year
     * @param orgType
     * @param queryType
     * @param checkManId
     * @return
     */
    List queryDemocracy(Integer year, String orgType, String queryType, Long checkManId);

    /**
     * @param year
     * @param userId
     * @return
     */
    int countOrgDemocracy(Integer year, Long userId);

}
